Optimal. Leaf size=51 \[ -\frac{\tan ^{-1}\left (\frac{\sin (c+d x) \cos (c+d x)}{\sin ^2(c+d x)+\sqrt{2}+1}\right )}{\sqrt{2} d}-\frac{x}{\sqrt{2}}+x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.172122, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {1130, 203} \[ -\frac{\tan ^{-1}\left (\frac{\sin (c+d x) \cos (c+d x)}{\sin ^2(c+d x)+\sqrt{2}+1}\right )}{\sqrt{2} d}-\frac{x}{\sqrt{2}}+x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1130
Rule 203
Rubi steps
\begin{align*} \int \frac{\sin (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^2}{1+3 x^2+2 x^4} \, dx,x,\tan (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{1+2 x^2} \, dx,x,\tan (c+d x)\right )}{d}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{2+2 x^2} \, dx,x,\tan (c+d x)\right )}{d}\\ &=x-\frac{x}{\sqrt{2}}-\frac{\tan ^{-1}\left (\frac{\cos (c+d x) \sin (c+d x)}{1+\sqrt{2}+\sin ^2(c+d x)}\right )}{\sqrt{2} d}\\ \end{align*}
Mathematica [A] time = 0.0722669, size = 30, normalized size = 0.59 \[ -\frac{\tan ^{-1}\left (\sqrt{2} \tan (c+d x)\right )}{\sqrt{2} d}+\frac{c}{d}+x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.087, size = 30, normalized size = 0.6 \begin{align*} -{\frac{\sqrt{2}\arctan \left ( \sqrt{2}\tan \left ( dx+c \right ) \right ) }{2\,d}}+{\frac{dx+c}{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.69157, size = 340, normalized size = 6.67 \begin{align*} \frac{4 \, d x - \sqrt{2} \arctan \left (\frac{2 \, \sqrt{2} \sin \left (d x + c\right )}{2 \,{\left (\sqrt{2} + 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sqrt{2} + 3}, \frac{\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) - 1}{2 \,{\left (\sqrt{2} + 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sqrt{2} + 3}\right ) + \sqrt{2} \arctan \left (\frac{2 \, \sqrt{2} \sin \left (d x + c\right )}{2 \,{\left (\sqrt{2} - 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \sqrt{2} + 3}, \frac{\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right ) - 1}{2 \,{\left (\sqrt{2} - 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \sqrt{2} + 3}\right ) + 4 \, c}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.49443, size = 140, normalized size = 2.75 \begin{align*} \frac{4 \, d x + \sqrt{2} \arctan \left (\frac{3 \, \sqrt{2} \cos \left (d x + c\right )^{2} - 2 \, \sqrt{2}}{4 \, \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin{\left (c + d x \right )}}{\sin{\left (c + d x \right )} + \csc{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.19908, size = 111, normalized size = 2.18 \begin{align*} \frac{2 \, d x - \sqrt{2}{\left (d x + c + \arctan \left (-\frac{\sqrt{2} \sin \left (2 \, d x + 2 \, c\right ) - 2 \, \sin \left (2 \, d x + 2 \, c\right )}{\sqrt{2} \cos \left (2 \, d x + 2 \, c\right ) + \sqrt{2} - 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 2}\right )\right )} + 2 \, c}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]